package com.powernode.excp;

import lombok.Data;

@Data
public class AjaxResult {
    private Integer code;
    private String message;
    private Boolean success;
    private Object data;
    private static final AjaxResult instance = new AjaxResult();

    public AjaxResult() {
    }

    public static AjaxResult getInstance() {
        return instance;
    }

    public AjaxResult setCode(Integer code) {
        this.code = code;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;

    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;

    }

    public AjaxResult setData(Object data) {
        this.data = data;
        return this;

    }
}
